package com.yekaile.carsystem.service;


import com.yekaile.carsystem.entity.Goods;
import com.yekaile.carsystem.entity.GoodsType;
import com.yekaile.carsystem.mapper.GoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yekaile
 */
@Service
public interface GoodsService {

    List<Goods> getGoods(Goods goods);


    /**
     * @param goodsId
     * @param isDeleted 1上架，0下架
     * @return
     */
    Integer doGoods(Integer goodsId, Integer isDeleted);

    Integer addGoods(Goods goods);

    List<GoodsType> listGoodsType(Integer goodsTypeId);

    Integer updateGoods(Goods goods);

    Integer doGoodsType(Integer goodsTypeId, Integer isDeleted);

    Integer addGoodsType(GoodsType goodsType);

    Integer updateGoodsType(GoodsType goodsType);


}
